﻿// <copyright file="ClipContext.cs" company="Microsoft Corporation">
// Copyright (c) 2009 Microsoft Corporation All Rights Reserved
// </copyright>
// <author>Michael S. Scherotter</author>
// <email>mischero@microsoft.com</email>
// <date>2009-11-23</date>
// <summary>ClipContext class definition</summary>

namespace Microsoft.WebAnalytics.Data
{
    using System;
    using System.Runtime.Serialization;
    using System.Windows.Media;

    /// <summary>
    /// Serializer for SSME ClipContext
    /// </summary>
    [DataContract]
    public class ClipContext
    {
        /// <summary>
        /// Gets or sets the clip information
        /// </summary>
        [DataMember]
        public ClipInformation ClipInformation { get; set; }

#if SILVERLIGHT
        /// <summary>
        /// Gets or sets the current clip state
        /// </summary>
        [DataMember(EmitDefaultValue = false, IsRequired = false)]
        public MediaElementState CurrentClipState { get; set; }
#endif
        /// <summary>
        /// Gets or sets the data
        /// </summary>
        [DataMember]
        public object Data { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the clip context has quartile events
        /// </summary>
        [DataMember]
        public bool HasQuartileEvents { get; set; }

        ///// <summary>
        ///// Gets or sets the position in the media
        ///// </summary>
        ////[DataMember]
        ////public TimeSpan Position { get; set; }
    }
}
